package com.example.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource(value = "classpath:car.properties")
@ConfigurationProperties(prefix = "car")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Car {
    private String name;
    private String brand;
    private String color;
    private double price;
}
